import 'package:flutter/material.dart';

void main() {
  runApp(MainPage());
}
class MainPage extends StatelessWidget{
  const MainPage({Key? key}) : super(key: key);
  List<Widget> getList(){
    return List.generate(10,(index){
      return Container(
        width:100,
        height:100,
        color: Colors.primaries[index],
      );
    });
    
  }
  @override
  Widget build(BuildContext context){
    return MaterialApp(
      home:Scaffold(
        body:Container(
          width:double.infinity,
          height:double.infinity,
          color: Colors.grey,
          child: 
          Stack(
          alignment:Alignment.center,
          children:[
            Container(
              width:300,
              height:300,
              color: Colors.blue,
            ),
            Container(
              width:200,
              height:200,
              color: Colors.red,
            ),
            Container(
              width:100,
              height:100,
              color: Colors.green,
            ),
            Container(
              width:50,
              height:50,
              color: Colors.yellow,
            ),
            Positioned(
              bottom:100,
              right:100,
              child:Container(
                width:50,
                height:50,
                color: Colors.purple,
              ),
            )
          ]
        )
        )
        )
    );
  }
}